package org.crud4j.wicket.markup.html.editor;

import org.apache.wicket.extensions.yui.calendar.DateTimeField;
import org.apache.wicket.model.IModel;

class DateEditorPanel extends AbstractEditorPanel {

	private static final long serialVersionUID = 1L;

	public DateEditorPanel(String id, IModel model) {
		super(id, model, ((DateModel) model).getField());

		DateTimeField editor = new DateTimeField("editor", model);
		editor.setEnabled(false);
		add(editor);
	}

}
